<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%-- <%@ taglib prefix="s" uri="/struts-tags" %> --%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ page import="com.kh.pajx.sop.util.common.DicUtil"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<script src="${pageContext.request.contextPath}/dwz/chart/raphael.js"
	type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/dwz/chart/g.raphael.js"
	type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/dwz/chart/g.bar.js"
	type="text/javascript"></script>

<script type="text/javascript">

</script>
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="${currentPage }" /> 
	<input type="hidden" name="numPerPage" value="${numPerPage}" /> 

</form>
<form rel="pagerForm" onsubmit="return divSearch(this, 'show_cmpp_content');" action="sop_cmppMessList.action" method="post">
	<input type="hidden" name="model.sclId" value="${sclId}">
	<input type="hidden" name="cmpp_graId" value="${graId}">
	<input type="hidden" name="cmpp_clsId" value="${clsId}">
	<input type="hidden" name="cmpp_phone" value="${phone}">
	<input type="hidden" name="cmpp_startDate" value="${startDate}">
	<input type="hidden" name="cmpp_endDate" value="${endDate}">
	<input type="hidden" name="cmpp_stuName" value="${stuName}">
	<input type="hidden" name="cmpp_stuNo" value="${stuNo}">
</form>
	
<div class="pageContent" >
<table class="table" width="100%" layoutH="124">
<thead>
<tr>
<th>序号</th>
<th>年级</th>
<th>班级</th>
<th>姓名</th>
<th>卡号</th>
<!-- <th>家长姓名</th> -->
<th>家长手机号</th>
<th>短信发送时间</th>
<th>短信内容</th>
</tr>
</thead>
<tbody id="listBody">
<c:forEach items="${recordList }" var="mes" varStatus="status">
<tr>
<td>${status.index+1 }</td>
<td><c:choose>
		<c:when test="${grades[mes[1]][1] eq grades[mes[1]][2]}">${grades[mes[1]][1]}</c:when>
		<c:otherwise>${grades[mes[1]][1] }(${grades[mes[1]][2] })</c:otherwise>
	</c:choose></td>
	<td>
<c:choose>
		<c:when test="${cls[mes[2]][1]  eq cls[mes[2]][2] }">${cls[mes[2]][1] }</c:when>
		<c:otherwise>${cls[mes[2]][1]  }(${cls[mes[2]][2]  })</c:otherwise>
	</c:choose>
</td>
<td>${mes[3] }</td>
<td>${mes[4] }</td>
<%-- <td>${mes[5] }</td> --%>
<td>${mes[5] }</td>
<td>
${fn:substringBefore(mes[6],".0") }
<%-- <fmt:parseDate value="${mes[6] }" var="date" pattern="yyyyMMddHHmmss" />
 <fmt:formatDate value="${date}" pattern="yyyy-MM-dd HH:mm:ss" /> --%></td>
<td>${mes[7] }</td>
</tr>
</c:forEach>
</tbody>
</table>
<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select class="combox" name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value}, 'show_cmpp_content')">
				<option value="10" <c:if test="${pageSize==10}">selected</c:if>>10</option>
				<option value="20" <c:if test="${pageSize==20}">selected</c:if>>20</option>
				<option value="30" <c:if test="${pageSize==30}">selected</c:if>>30</option>
				<option value="40" <c:if test="${pageSize==40}">selected</c:if>>40</option>
				<option value="50" <c:if test="${pageSize==50}">selected</c:if>>50</option>
			</select> <span>条，共${recordCount}条</span>
		</div>
		<div class="pagination" rel="show_cmpp_content" totalCount="${recordCount}"
			numPerPage="${pageSize}" pageNumShown="5"
			currentPage="${currentPage}"></div>
	</div>
</div>
		